package com.easemob.chat.core;

import java.util.Date;
import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smack.util.StringUtils;

public class p
  implements PacketExtension
{
  private Date a;

  public p(Date paramDate)
  {
    this.a = paramDate;
  }

  public Date a()
  {
    return this.a;
  }

  public String getElementName()
  {
    return "ts";
  }

  public String getNamespace()
  {
    return "urn:xmpp:timestamp";
  }

  public String toXML()
  {
    StringBuilder localStringBuilder = new StringBuilder();
    localStringBuilder.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append("\"");
    localStringBuilder.append(" stamp=\"");
    localStringBuilder.append(StringUtils.formatXEP0082Date(a()));
    localStringBuilder.append("\"");
    localStringBuilder.append(">");
    localStringBuilder.append("</").append(getElementName()).append(">");
    return localStringBuilder.toString();
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.core.p
 * JD-Core Version:    0.6.1
 */